#pragma once


// #define HW_CONTROLLER_GPIO
// #define HW_CONTROLLER_GPIO_ANALOG_JOYSTICK
#define HW_CONTROLLER_DABBLE_APP


/*ESP32S3*/
#define PIN_LCD_BL                 38

#define PIN_LCD_D0                 39
#define PIN_LCD_D1                 40
#define PIN_LCD_D2                 41
#define PIN_LCD_D3                 42
#define PIN_LCD_D4                 45
#define PIN_LCD_D5                 46
#define PIN_LCD_D6                 47
#define PIN_LCD_D7                 48

#define PIN_POWER_ON               15

#define PIN_LCD_RES                5
#define PIN_LCD_CS                 6
#define PIN_LCD_DC                 7
#define PIN_LCD_WR                 8
#define PIN_LCD_RD                 9

#define PIN_BUTTON_1               0
#define PIN_BUTTON_2               14
#define PIN_BAT_VOLT               4

#define PIN_IIC_SCL                17
#define PIN_IIC_SDA                18

#define PIN_TOUCH_INT              16
#define PIN_TOUCH_RES              21

/* nes controller gpio  */
#define HW_CONTROLLER_GPIO_UP_DOWN
#define HW_CONTROLLER_GPIO_LEFT_RIGHT
#define HW_CONTROLLER_GPIO_UP
#define HW_CONTROLLER_GPIO_DOWN
#define HW_CONTROLLER_GPIO_LEFT
#define HW_CONTROLLER_GPIO_RIGHT
#define HW_CONTROLLER_GPIO_SELECT
#define HW_CONTROLLER_GPIO_START
#define HW_CONTROLLER_GPIO_A
#define HW_CONTROLLER_GPIO_B
#define HW_CONTROLLER_GPIO_X
#define HW_CONTROLLER_GPIO_Y